/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ejemplothreads;

import java.lang.Thread.State;

/**
 *
 * @author AdminLocal
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws InterruptedException {
            ClaseHilable t = new ClaseHilable(1);
            t.start();
            t.join(5000);
            State estado = t.getState();
            int valor = t.numeroHilo;
            System.out.println("Termina el hilo principal");
    }

}
